import request from '@/utils/request'

// 查询品管检测卡
export function listDetectionCard(query) {
  return request({
    url: '/quality/qualityFile/getQualityDetectionList',
    method: 'get',
    params: query
  })
}

// 导出品管检测卡
export function exportDetectionCard(query) {
  return request({
    url: '/quality/qualityFile/export',
    method: 'get',
    params: query
  })
}

// 查询物料相关信息
export function listMaterialsDetail(query) {
  return request({
    url: '/quality/qualityFile/getMaterialsDetail',
    method: 'get',
    params: query
  })
}

// 上传品管文件相关信息
export function uploadQualityFile(data) {
  return request({
    url: '/quality/qualityFile/uploadFile',
    method: 'post',
    data: data
  })
}

// 删除品管文件
export function deleteQualityFile(docDjbhs) {
  return request({
    url: '/quality/qualityFile/deleteFile/' + docDjbhs,
    method: 'delete'
  })
}
